﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;


namespace TyMES.ViewModel.Record.AlarmLogRecordVMs
{
    public partial class AlarmLogRecordTemplateVM : BaseTemplateVM
    {
        [Display(Name = "报警时间")]
        public ExcelPropety warningTime_Excel = ExcelPropety.CreateProperty<AlarmLogRecord>(x => x.warningTime);
        [Display(Name = "产线编号")]
        public ExcelPropety lineCode_Excel = ExcelPropety.CreateProperty<AlarmLogRecord>(x => x.lineCode);
        [Display(Name = "工位号")]
        public ExcelPropety stationCode_Excel = ExcelPropety.CreateProperty<AlarmLogRecord>(x => x.stationCode);
        [Display(Name = "工序号")]
        public ExcelPropety operationCode_Excel = ExcelPropety.CreateProperty<AlarmLogRecord>(x => x.operationCode);
        [Display(Name = "设备号")]
        public ExcelPropety machineCode_Excel = ExcelPropety.CreateProperty<AlarmLogRecord>(x => x.machineCode);
        [Display(Name = "报警代码")]
        public ExcelPropety warningCode_Excel = ExcelPropety.CreateProperty<AlarmLogRecord>(x => x.warningCode);
        [Display(Name = "报警类型")]
        public ExcelPropety warningType_Excel = ExcelPropety.CreateProperty<AlarmLogRecord>(x => x.warningType);
        [Display(Name = "报警详情")]
        public ExcelPropety warningDesc_Excel = ExcelPropety.CreateProperty<AlarmLogRecord>(x => x.warningDesc);

	    protected override void InitVM()
        {
        }

    }

    public class AlarmLogRecordImportVM : BaseImportVM<AlarmLogRecordTemplateVM, AlarmLogRecord>
    {

    }

}
